-- change_spell2
-- created by zhuangsl
-- 获得卷轴A时转化为卷轴B

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 每回合触发
    trigger = function(who, prop, arg)
        -- 不是指定的卷轴
        if arg ~= tonumber(prop[2]) then
            return arg;
        end

        -- 触发特技发动事件
        EventMgr.fire(event.SPECIAL_SKILL_TRIGGER, { propId = prop[1], key = arg,});

        return prop[3];
    end,

    record = function(target, prop, path)
        return false;
    end
};
